package com.ztgf.commodity.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.commodity.models.dto.CategoryBrandAttributesRelationDTO;
import com.ztgf.commodity.models.dto.CommodityLabelDTO;
import com.ztgf.commodity.models.vo.CategoryBrandAttributesVO;

import java.util.List;

/*
 * @author: chenyu.wang
 * @date: 2020-09-09
 * @description:类目品牌属性关系表服务
 */
public interface ICategoryBrandAttributesRelationService extends IService<CategoryBrandAttributesRelationDTO> {

    void deleteByTwoId(Long categoryId, Long brandId);

    void deleteByCategoryId(Long categoryId);

    /**
     * @Description: 根据类目id获取关联的品牌信息
     * @Author: chenyu.wang
     * @Params: [categoryId]
     * @Date: 2020.11.10 14:41
     */
    List<CategoryBrandAttributesVO> queryByCategoryId(Long categoryId);

    void addUnitidsByBrandAndCategory(Long brandId, Long categoryId);

    /**
     * @Description: 根据类目id和品牌id获取标签属性信息
     * @Author: chenyu.wang
     * @Params: [categoryId, brandId]
     * @Date: 2020.12.18 10:53
     */
    List<CommodityLabelDTO> queryLabelByCategoryIdAndBrandId(Long categoryId, Long brandId);
}
